home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / win_nt / psrcn1.zip / TEST.TXT < prev   
Text File  |  1994-05-28  |  10KB  |  140 lines

  1. This is a sample file for testing printsrc.exe.
  2. Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  3. Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  4. line 4
  5.  
  6. line 6
  7.     line 7 - indent 1
  8.     line 8 - indent 1
  9.     line 9 - indent 1
  10.         line 10 - indent 2 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  11.     line 11 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  12.     line 12 - indent 1
  13.     line 13 - indent 1
  14. line 14
  15. line 15
  16. line 16
  17. line 17
  18. line 18
  19. line 19
  20. line 20
  21. line 21
  22. line 22
  23. line 23
  24. line 24
  25. line 25
  26. line 26
  27. line 27
  28. line 28
  29. line 29
  30.     line 30 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  31.     line 31 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  32.     line 32 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  33.     line 33 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  34.     line 34 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  35.     line 35 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  36.     line 36 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  37.     line 37 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  38.         line 38 - indent 2 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  39.             line 39 - indent 3 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  40. Line 40 Distribution:
  41.     line 41 - indent 1 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  42.         line 42 - indent 2 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  43.             line 43 - indent 3 - Print Source For Windows NT is a native Windows NT console application. It prints standardized source code listings (or other text files) from the NT command prompt on Laserjet series printers. Designed for programmers, Print Source For Windows NT includes essential file information on each page of a source listing and can be three hole punched without loss of information. Options may be invoked via switches or environment variables - switches take precedence.
  44. line 44
  45. //    $Id: test.txt 1.4 1994/05/28 18:49:56 mike Raw $
  46. //    $Date: 1994/05/28 18:49:56 $
  47. //    language: Microsoft Visual C++ 32 Bit Edition
  48. //    copyright: (c)1994, Software For You, Inc. All Rights Reserved.
  49. //    creation date: 10/06/1993
  50. line 50
  51. //    $Log: test.txt $
  52. Revision 1.4  1994/05/28  18:49:56  mike
  53. Initial revision
  54.  
  55. Revision 1.3  1994/05/13  03:26:42  mike
  56. Added word at end of line.
  57. Fixed file name and path.
  58.  
  59. #include "nt_prn.hpp"
  60.  
  61. static char _rcs_id[] = "$Id";
  62. char TMP_FILE_PREFIX[] = "~PSRC_";
  63. line 60
  64. // constructors
  65. NTPrinter::NTPrinter(CString PrinterName)
  66. {
  67.     _BufferFilename = _tempnam(".", TMP_FILE_PREFIX);
  68.  
  69.     fp.open(_BufferFilename);
  70.  
  71.     _StartTime = CTime::GetCurrentTime();
  72.     _StartTimeString = _StartTime.Format("%#c");
  73.  
  74.     _PrinterName = PrinterName;
  75. }
  76.         
  77.  
  78. // destructor
  79. NTPrinter::~NTPrinter()
  80. {
  81.     int i;
  82.  
  83.     if (fp.is_open())        //line 80
  84.     {
  85.         fp.close();
  86.     }
  87.  
  88.     {
  89.         {
  90.             {
  91.                 {
  92.                     {
  93.                         {
  94.                             {
  95.                                 if (!GetErrorStatus())
  96.                                 {
  97.                                     for (i = 0; i < GetCopies(); i++)
  98.                                     {
  99.                                         CString CommandString;
  100.  
  101.                                         CommandString =    "print /D:" + _PrinterName + " " + _BufferFilename + " >nul\n" + abc->defghijklmnop->qstuvw->xyz->abcdef.ghijklmno->pqrstuvwxyz;
  102.     
  103.                                         system(CommandString);    // line 100
  104.                                     }
  105.                                 }
  106.                             }
  107.                         }
  108.                     }
  109.                 }
  110.             }
  111.         }
  112.     }
  113. line 110    
  114.     remove(_BufferFilename);
  115. }
  116.  
  117.  
  118. CString NTPrinter::GetBufferFilename() const
  119. {
  120.     return _BufferFilename;
  121. }
  122.  
  123. line 120
  124. CTime NTPrinter::GetStartTime() const
  125. {
  126.     return _StartTime;
  127. }
  128.  
  129.  
  130. CString NTPrinter::GetStartTimeString() const
  131. {
  132.     return _StartTimeString;
  133. }
  134.  
  135.  
  136. CString NTPrinter::GetPrinterName() const
  137. {
  138.     return _PrinterName;
  139. }
  140. line 137 - LAST LINE!!!!